Integrations

On this page:

Configuration Patches

Configuration Patches

IAP provides connections to devices through an intermediate layer called a device broker which in turn provides a method (setConfig). SetConfig can accept a sequence of configuration patches as an argument.

Configuration patches have several required properties:

Property Description
old he current line of configuration, or an empty string if adding a new line.
new The new, desired line of configuration, or an empty string if deleting an existing line.
parents An array of parent config lines used to locate the site to change.

Examples

The following example configuration patch removes the ACL pm-test-ext-1from the interface GigabitEthernet1 on a Cisco IOS device:

{
  "parents": [
    "interface GigabitEthernet1"
  ],
  "old": "ip access-group pm-test-ext-1 out",
  "new": ""
}

The following example configuration patch adds the line permit tcp any any to the ACL pm-test-ext-1 on a Cisco IOS device:

{
  "parents": [
    "ip access-list extended pm-test-ext-1"
  ],
  "old": "",
  "new": "permit tcp any any"
}